<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// DEVELOPER'S NOTES
// This is to display the search params on the "You searched for" area of the search results page

// CHANGE NOTES
// 4/17/09
// Version 1.0
// 11/30/09
// Working on Admin

// Debugging
// Var:'svDebug' = 'Y';

Var:'svSearchParams' = (string);
Var:'svSearchParamsURL' = (string);
// Add initial question mark to start query string for URL
$svSearchParamsURL += '?DataType=Forum';

// New
If: Var:'vNew' != '';
	$svSearchParamsURL += ('&New='($vNew));
/If;

// Get the Section Title
If: Var:'vSID' != '';

	Var:'vSQLSearchSections'='SELECT * FROM ' $svSectionsTable ' WHERE Section_ID = "' $vSID '" LIMIT 1';
	Inline: $IV_SearchSections, -SQL=$vSQLSearchSections;
			Var:'vSection_Title' = (Field:'Section_Title');
	/Inline;

	$svSearchParams += ('<strong>Section:</strong> ' ($vSection_Title));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&SID='($vSID));
/If;

// Remove trailing comma
$svSearchParams->RemoveTrailing(', ');

Debug;
	'64: svSearchParams = ' $svSearchParams '<br>\n';
	'64: svSearchParamsURL = ' $svSearchParamsURL '<br>\n';
/Debug;
?>